package com.orange.wwwapi.controller.merchantReport;

import com.orange.core.pojo.BR;
import com.orange.core.pojo.R;
import com.orange.core.pojo.entity.merchantReport.dto.MerchantReportDTO;
import com.orange.core.service.merchantReport.MerchantReportService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * <p>ClassName:MerchantReportController</p>
 * <p>Description: 商户报表controller</p>
 * <p>Author: lwm</p>
 * <p>Date: 2025/5/30 0:10</p>
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/merchantReport")
public class MerchantReportController {

    private final MerchantReportService merchantReportService;


    /**
     * 商户报表新增
     * @param merchantReportDTO
     * @return
     */
    @PostMapping
    public R<Boolean> save(@RequestBody @Validated MerchantReportDTO merchantReportDTO) {
        return BR.result(merchantReportService.save(merchantReportDTO));
    }


}
